package com.sdry.service.hpf;

import java.util.List;
import java.util.Map;

import com.sdry.model.hpf.AndroidApprovalRecord;
import com.sdry.model.hpf.ApprovalRecord;

/**
 * @ClassName: ApprovalRecordService 
 * @Description:审批记录Service
 * @Author hpf
 * @Date 2018年12月10日 上午10:31:29 
 * @version 1.0
 */
public interface ApprovalRecordService {

	/**
	 * 分页查询待办
	 * @param map
	 * @return
	 */
	List<ApprovalRecord> listPageApprovalRecord(Map<String, Object> map);
	
	/**
	 * 分页查询已办
	 * @param map
	 * @return
	 */
	List<ApprovalRecord> listPageApprovalComplete(Map<String, Object> map);
	
	/**
	 * 总数待办
	 * @param pickID
	 * @return
	 */
	Integer countApprovalRecord(Long pickID);
	
	/**
	 * 总数已办
	 * @param pickID
	 * @return
	 */
	Integer countApprovalComplete(Long pickID);
	
	/**
	 * 查询全部
	 * @param pickID
	 * @return
	 */
	List<ApprovalRecord> listAllApprovalRecord(Long pickID);
	
	/**
	 * 新增
	 * @param approvalRecord
	 * @return
	 */
	Integer insertApprovalRecord(ApprovalRecord approvalRecord);
	
	/**
	 * 删除
	 * @param arID
	 * @return
	 */
	Integer deleteApprovalRecord(Long arID);
	
	List<AndroidApprovalRecord> listAllAndroidApprovalRecord(Long approverID);
}
